package com.dm.cloud.core.mode;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author sg
 * @ClassName ResponseList
 * @desc
 * @Date 2021/08/18 17:46
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "集合返回对象结构")
@Builder
public class PageList<T> {

    /**
     * 分页信息
     */
    @Schema(description = "分页参数")
    private PaginationParam pageParam=new PaginationParam();

    /**
     * 数据体
     */
    @Schema(description = "数据体")
    private List<T> data;

}
